package com.sdp.th.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sdp.core.bizc.db.Query;
import com.sdp.core.bizc.vo.DataCenter;
import com.sdp.core.bizc.vo.Result;
import com.sdp.th.db.th_eq_exception.service.IThEqExceptionService;
import com.sdp.th.entity.ThEqException;

/**
 * <p>
 * 设备台账 前端控制器
 * </p>
 *
 * @author zsp
 * @since 2025-05-06
 */
@RestController
@RequestMapping("/ThEqExceptionController")
public class ThEqExceptionController {

	
	@Autowired
	private IThEqExceptionService iThEqExceptionService;
	
	@Autowired
	private Query query;
	
	@PostMapping(value = "/page")
	public Result<?> page(@RequestBody DataCenter dataCenter) {
		return Result.ok(query.page(iThEqExceptionService, ThEqException.class, dataCenter));
	}
}

